package com.gongzhiyun.springboot3test.entity.novel;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("novel_chapter")
@Schema(description = "小说章节表")
public class NovelChapter implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "章节id", example = "1")
    private Integer id;
    @Schema(description = "小说id", example = "1")
    private Integer novelId;
    @Schema(description = "章节标题", example = "哈哈哈")
    private String chapterTitle;
    @Schema(description = "章节内容", example = "哈哈哈")
    private String content;
    @Schema(description = "章节排序", example = "1")
    private Integer chapterOrder;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "最后更新时间", example = "2023-05-01 12:00:00")
    private Date createTime;
}
